package cn.neusoft;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * SpringBoot的启动类
 */
@SpringBootApplication
@MapperScan("cn.neusoft.mapper")    //扫描mapper层接口的所在的包，为接口创建代理
public class HelloApplication {

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

    public static void main(String[] args) {

        SpringApplication.run(HelloApplication.class,args   );

    }

}
